package com.develop.data.loan.option;

import com.develop.data.loan.option.constraint.CodedOption;
import com.develop.data.loan.option.constraint.CommentedOption;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
public enum LoanRepayFrequency implements CodedOption, CommentedOption {

    DAILY("01", "每天"),
    WEEKLY("02", "每周"),
    MONTHLY("03", "每月"),
    QUARTERLY("04", "每季度"),
    SEMIANNUAL("05", "每半年"),
    ANNUAL("06", "每年"),
    MATURITY("07", "到期全额"),
    ARBITRARILY("08", "任意时间");

    @Getter
    private String code;
    @Getter @Setter
    private String comment;
}
